<extend name="Public/common" />
<block name="body">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>梦想申请列表</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-3" style="float: right;">
                                <!-- <div class="input-group">
                                    <input type="text" placeholder="请输入姓名" class="input-sm form-control"> <span class="input-group-btn">
                                    <button type="button" class="btn btn-sm btn-primary"> 搜索</button> </span>
                                </div> -->
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th></th>
                                    <th>申请者姓名</th>
                                    <th>申请者ID</th>
                                    <th>性别</th>
                                    <th>申请等级</th>
                                    <th>申请者联系方式</th>
                                    <th>申请时间</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="memberlist" id="memberlist">
                                    <tr>
                                        <td>
                                            <input type="checkbox" class="i-checks" name="id[]" value="{$memberlist.id}">
                                        </td>
                                        <td>{$memberlist.user}</td>
                                        <td>{$memberlist.userid}</td>
                                        <td>
                                            <if condition="($memberlist['sex'] == 1)"> 男 </if>
                                            <if condition="($memberlist['sex'] == 2)"> 女 </if>
                                        </td>
                                        <td>
                                            {$memberlist.level}
                                        </td>
                                        <td>
                                            {$memberlist.phone}
                                        </td>
                                        <td>
                                            {$memberlist.time}
                                        </td>
                                        <td>
                                            <a href="{:U('Apply/allow',['applyid'=>$memberlist['id'],'level'=>4])}"><button type="button" class="btn btn-outline btn-primary btn-xs">允许</button></a>

                                            <a href="{:U('Apply/remove',['id'=>$memberlist['id'],'level'=>4])}" class="ajax-delete"><button type="button" class="btn btn-outline btn-warning btn-xs">不允许</button></a>                                    </td>
                                        </td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </div>
                        <div style="text-align: center;">{$page}</div>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <script src="__JS__/http/ajax.js"></script>
</block>